
import img404 from '@$@/img/img404.gif';
import $app from '@$@/js/$app';
import $router from '@/router'
let ListWarnInfo = {

  list(that) {

    let out = [
      {
        title: " ",
        type: "index",
        width: 30,
        align: "center ",
        className: "goOnTxt c999"
      },
      {
        type: "selection",
        className: "goOnTxt",
        align: "center",
        width: 40
      },
      {
        title: "图样",
        align: "center",
        width: 100,
        className: `f_14 goOnTxt padding5-0`,
        render: (h, params) => {
          let {
            row: {
              trademark_img
            }
          } = params;
          return h("div", [
            h("img", {
              class: `f_12 contain inlineBlock padding5 pointer`,
              style: {
                width: `80px`,
                height: `60px`,
              },
              attrs: {
                src: trademark_img
              },
              on: {
                error: (event) => {
                  event.target.src = img404;
                },
                click:(event)=>{
                  $app.imgBoxSee(event.target.src);
                }
              }
            })
          ]);
        }
      },

      {
        title: "商标名称",
        key: "trademark_name",
        className: "goOnTxt",
        resizable: true,
      },
      {
        title: "注册号",
        className: "goOnTxt",
        width: 300,
        resizable: true,
        resizable: true,
        render: (h, params) => {
          let {
            row:{
              inter_type,
              register_number
            }
          } = params;
          let out = [
            h(
              "span",
              {
                class: " cBlue pointer",
                on:{
                  click:()=>{
                    // 页面跳转
                    $router.push({
                      name: 'TrademarkInfo',
                      query: {
                        p1:inter_type,
                        p2:register_number
                      }
                    })
                  }
                }
              },
              register_number
            )
          ];
  
  
  
          return out;
        }
      },
      {
        title: "类别",
        key: "inter_type",
        className: "goOnTxt",
        width: 250,
        resizable: true,
      }
    ];



    out.push({
      title: "操作",
      className: "goOnTxt",
      render: (h, params) => {
        let {
          row
        } = params;
        let out = [];


        out.push(
          h(
            "span",
            {
              class: "  cBlue textLink ",
              on: {
                click: () => {
                  that.showView(row);
                }
              }
            },
            `续费`
          ),
          // h(
          //   "span",
          //   {
          //     class: "  cCCC marginR10",
          //   },
          //   `|`
          // ),
          // h(
          //   "span",
          //   {
          //     class: "  c999 textLink",
          //     on: {
          //       click: () => {
          //         that.huLA(row);
          //       }
          //     }
          //   },
          //   `忽略`
          // ),
        );


        return out;
      }
    });



    return out;
  }
}

// 表格 列 配置
export default ListWarnInfo;